package com.yt.sys.models.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("sys_permission")
@ApiModel(value = "SysPermission", description = "权限表")
public class SysPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "权限唯一ID")
    @TableId(value = "perm_id", type = IdType.AUTO)
    private Integer permId;

    @ApiModelProperty(value = "权限名称（如录入投保信息、医疗审核）")
    @TableField("perm_name")
    private String permName;

    @ApiModelProperty(value = "URL权限路径（如/system/user/add）")
    @TableField("perm_url")
    private String permUrl;

    @ApiModelProperty(value = "所属模块（如投保管理、索赔管理）")
    @TableField("module")
    private String module;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除（0=正常，1=删除）")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;
}